  <ul>
      
         <?php 
         if($linksData){
            foreach($linksData as $key=>$value){
              if($key == 0 || $key == 14 || $key == 28)
              echo "<li>";
         ?>
          <div class="index_brand_pic">
               <?php 
             $images = CHtml::image('uploadfile/category/'.$value['Photo'],$value['CateName'],array('width'=>120,'height'=>50));
             echo CHtml::link($images,array('site/list','brandid'=>$value['BrandCategoryID']))?>
             </a>
           
             </div>
          <?php
              if($key == 13|| $key == 27 || $key == 41) echo "</li>";
            } } ?>
       
      </ul>